package threadsWdh;

import java.text.DateFormat;
import java.text.ParseException;
import java.util.Date;

class NombreRunnable implements Runnable {
    public void run() {
        for (int x = 1; x <= 400; x++) {
            System.out.println("Run by " + Thread.currentThread().getName() + ", x is " + x);
        }
    }
//    void waitForSignal() {
//        Object obj = new Object();
//        synchronized (Thread.currentThread()) {
//            try {
//				obj.wait();
//			} catch (InterruptedException e) {
//				// TODO Auto-generated catch block
//				e.printStackTrace();
//			}
//            obj.notify();
//        }
//    }
}

class Building { }


public class Threads02 extends Building {

	 
	public enum MyColor {
		        RED(0xff0000), GREEN(0x00ff00), BLUE(0x0000ff);
		        private final int rgb;
		        MyColor(int rgb) { this.rgb = rgb; }
		        public int getRGB() { return rgb; }
		    };
		    
	public static void main(String[] args) {
	
//		NombreRunnable nr = new NombreRunnable();
//		Thread one =  new Thread(nr);
//		Thread two =  new Thread(nr);
//		Thread three =  new Thread(nr);
//		one.setName("Fred");
//		two.setName("Lucy");
//		three.setName("Ricky");
//		one.start();
//		two.start();
//		three.start();
//		System.out.println("Run by " + Thread.currentThread().getName());

//		MyColor test = MyColor.GREEN;
//		System.out.println(test.getRGB());
//		MyColor skyColor = BLUE;
//		
//		 Building build1 = new Building();
//		 Threads02 barn1 = new Threads02();
//		 Threads02 barn2 = (Threads02) build1;
//		        Object obj1 = (Object) build1;
//		        String str1 = (String) build1;
//		        Building build2 = (Building) barn1;
		DateFormat df = DateFormat.getDateInstance();         
		Date d = new Date(0L);
		String ds = "December 15, 2004";
		try {
		    d = df.parse(ds);
		} catch(ParseException e) { 
			System.out.println();
		}
		System.out.println(d);
	}
		
}
